<?php use_helper('Javascript','Nifty') ?>

<h3>NEWS & EVENTS</h3>
<br />
<?php if($sf_user->hasCredential('admin')): ?>
<h4>Edit Blog</h4>
<div class="sidelink"><?php echo link_to(__('Posts'), 'sfSimpleBlogPostAdmin/index') ?></div>
<div class="sidelink"><?php echo link_to(__('Comments'), 'sfSimpleBlogCommentAdmin/index') ?></div>
<?php if(sfConfig::get('app_sfSimpleBlog_use_media_library', false)): ?>
  <div class="sidelink"><?php echo link_to(__('Media Library'), 'sfMediaLibrary/index') ?></div>
<?php endif; ?>
<div class="sidelink"><?php echo link_to(__('View blog'), 'sfSimpleBlog/index') ?></div>
<?php endif; ?>
<?php echo javascript_tag( nifty_round_elements("div.sidelink") ) ?>